<?php
class Admin_Form_SelectRadio extends Admin_Form_Select
{
  public function __toString()
  {
    $output = null;
    foreach ($this->choices as $v => $label)
    {
      $n = $this->getName();
      $radio = radiobutton_tag($n, $v, ($v == $this->value));
      $label = label_tag(get_id_from_name($n), $label);
      $output .= content_tag('li', "$radio $label");
    }
    return content_tag('ul', $output, $this->html_options);
  }
}